home *** CD-ROM | disk | FTP | other *** search
- Path: news.urz.uni-heidelberg.de!cbb
- From: cbb@convex.phazc.uni-heidelberg.de (Christopher Blencowe)
- Newsgroups: comp.lang.c++
- Subject: Q: String replacement
- Date: 4 Mar 1996 09:20:01 GMT
- Organization: University of Heidelberg, Germany
- Message-ID: <4heck1$dqp@sun0.urz.uni-heidelberg.de>
- NNTP-Posting-Host: iris.phazc.uni-heidelberg.de
- X-Newsreader: TIN [version 1.2 PL2]
-
- I hav a C program, with the following construct, to replace
- a character of a given string:
- The tsring is
- static char *line = "/dev/ptyXX";
-
- The replacement should be
- line[8] = dp->d_name[3];
- line[9] = dp->d_name[4]:
-
- so, replace XX with two other chars,
-
- My cc (Convex OS 10.1) does not handle this, so is there
- a string function to come along the same ?
-
- I am no good C programmer, so please follow up or guide me
- to the right lib, if any.
-
- Christopher
-
- --
- ----------------------------------------------------------------------
- > Christopher Blencowe _______ <
- >> || Pharmazeutisch-Chemisches Institut | .._.. | <<
- >>> / \ Universitaet Heidelberg |_______| <<<
- >> /____\ GERMANY /______/ <<
- > cbb@convex.phazc.uni-heidelberg.de <
- ----------------------------------------------------------------------
-
-